from flask_script import Manager
from flask_migrate import MigrateCommand

from config import conf
from info import create_app


# 创建应用
app = create_app(conf["dev"])
# 创建管理器
mgr = Manager(app)
# 添加到命令中
mgr.add_command("mc", MigrateCommand)


if __name__ == '__main__':
    mgr.run()